﻿
#region 程序集引用区
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using SubSonic.DataProviders;
using SubSonic.Extensions;
using System.Linq.Expressions;
using SubSonic.Schema;
using System.Collections;
using SubSonic;
using SubSonic.Repository;
using System.ComponentModel;
using System.Data.Common;
using SubSonic.Query;
using System.Xml;
using System.Xml.Serialization;
using System.Reflection;
#endregion

namespace WebeTerm.Model{
    
    /// <summary>
    /// 文 件 名: CompanyMailPool.cs
    /// CLR版本 : v2.0.50727
    /// 作   者 : lijun.hu
    /// 版    权: Copyright @2011 lijun.hu(FORCEN HU) 
    /// 电子邮箱：lijun.hu@shinsoft.net
    /// 说    明: 公司邮件队列
    /// 生成日期: 2014年12月5日
    /// </summary>
    [Serializable]
    [Description(@"公司邮件队列")]
    public partial class CompanyMailPool:BaseModel, IModel{
        
        #region 构造函数
        /// <summary>
        /// 公司邮件队列
        /// </summary>
        public CompanyMailPool() : base(new CompanyMailPoolTable(null)) { 
            
        }               
        #endregion
        
        #region CompanyMailPool属性列表
        System.Guid m_Id;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Guid  Id
        {
            get { return m_Id; }
            set
            {
                //if(m_Id!=value)
                {
                    m_Id=value;
                    UpdateColumn(@"Id");
                }
            }
        }
        
        System.String m_MailTypeCode;
        /// <summary>
        /// 邮件类型(ClearQ、PAT......)
        ///</summary>
        [XmlAttribute()]
        [Description(@"邮件类型(ClearQ、PAT......)")]
        public System.String  MailTypeCode
        {
            get { return m_MailTypeCode; }
            set
            {
                //if(m_MailTypeCode!=value)
                {
                    m_MailTypeCode=value;
                    UpdateColumn(@"MailTypeCode");
                }
            }
        }
        
        System.String m_Subject;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  Subject
        {
            get { return m_Subject; }
            set
            {
                //if(m_Subject!=value)
                {
                    m_Subject=value;
                    UpdateColumn(@"Subject");
                }
            }
        }
        
        System.String m_Content;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  Content
        {
            get { return m_Content; }
            set
            {
                //if(m_Content!=value)
                {
                    m_Content=value;
                    UpdateColumn(@"Content");
                }
            }
        }
        
        System.String m_To;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  To
        {
            get { return m_To; }
            set
            {
                //if(m_To!=value)
                {
                    m_To=value;
                    UpdateColumn(@"To");
                }
            }
        }
        
        System.String m_Cc;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  CC
        {
            get { return m_Cc; }
            set
            {
                //if(m_Cc!=value)
                {
                    m_Cc=value;
                    UpdateColumn(@"Cc");
                }
            }
        }
        
        System.String m_Bcc;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  Bcc
        {
            get { return m_Bcc; }
            set
            {
                //if(m_Bcc!=value)
                {
                    m_Bcc=value;
                    UpdateColumn(@"Bcc");
                }
            }
        }
        
        System.Int32 m_TryCount;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Int32  TryCount
        {
            get { return m_TryCount; }
            set
            {
                //if(m_TryCount!=value)
                {
                    m_TryCount=value;
                    UpdateColumn(@"TryCount");
                }
            }
        }
        
        System.DateTime? m_LastTryDate;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.DateTime?  LastTryDate
        {
            get { return m_LastTryDate; }
            set
            {
                //if(m_LastTryDate!=value)
                {
                    m_LastTryDate=value;
                    UpdateColumn(@"LastTryDate");
                }
            }
        }
        
        System.DateTime m_EnqueueDate;
        /// <summary>
        /// 进入队列时间
        ///</summary>
        [XmlAttribute()]
        [Description(@"进入队列时间")]
        public System.DateTime  EnqueueDate
        {
            get { return m_EnqueueDate; }
            set
            {
                //if(m_EnqueueDate!=value)
                {
                    m_EnqueueDate=value;
                    UpdateColumn(@"EnqueueDate");
                }
            }
        }
        
        System.Int32 m_TaskStatus;
        /// <summary>
        /// 邮件任务状态（待处理、发送成功、发送失败）
        ///</summary>
        [XmlAttribute()]
        [Description(@"邮件任务状态（待处理、发送成功、发送失败）")]
        public System.Int32  TaskStatus
        {
            get { return m_TaskStatus; }
            set
            {
                //if(m_TaskStatus!=value)
                {
                    m_TaskStatus=value;
                    UpdateColumn(@"TaskStatus");
                }
            }
        }
        
        System.Guid m_CompanyId;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Guid  CompanyId
        {
            get { return m_CompanyId; }
            set
            {
                //if(m_CompanyId!=value)
                {
                    m_CompanyId=value;
                    UpdateColumn(@"CompanyId");
                }
            }
        }
        
        #endregion
        
        
        #region 关联父级
        private CompanyInfo m_FK_COMPANYM1_REFERENCE_COMPANYI;
        /// <summary>
        /// FK_COMPANYM1_REFERENCE_COMPANYI:未定义.
        /// <remarks>
        /// 外键名称：FK_COMPANYM1_REFERENCE_COMPANYI
        /// 主表名称：CompanyInfo
        /// 外键字段：Id
        /// </remarks>
        /// </summary>
        [Browsable(false)]
        [XmlIgnore()]
        public CompanyInfo FK_COMPANYM1_REFERENCE_COMPANYI{
            get{
                return m_FK_COMPANYM1_REFERENCE_COMPANYI;
            }
            set{
                m_FK_COMPANYM1_REFERENCE_COMPANYI=value;
            }
        }
        #endregion
       
    }
} 



